﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DataConcept.Business;
using DataConcept.Entities;

namespace Concept.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public bool CreateConcept()
        {
            bl_Concept blConcept = new bl_Concept();
            for (int i = 0; i < 10; i++)
            {
                blConcept.Create(
                    string.Format("Concept {0}", i),
                    null,
                    null);
            }

            return true;
        }

        public ActionResult GetAllConcept()
        {
            bl_Concept blConcept = new bl_Concept();
            var model = blConcept.GetAll();

            return View(model);
        }
    }
}
